This sample accompanies chapter 9 of the book "Embedded Controller - Grundlagen und praktische Umsetzung fr industrielle Anwendungen" by Rdiger R. Asche.

Target Hardware: ST Microelectronis STM32F407 Discovery Board.

This implements a minimum architecture for a resident bootloader separated from the application firmware.

You will greatly benefit from having studied the discussion in the book mentioned above to understand the code.

First, switch to the application directory, open the ledtest.xjrf workspace into WinIdea Open and build the project.

You will observe that the application is not bootable (ie when you load the generated image into the target, the target will not be able to boot).

Then switch to the common subdirectory, open the bldemo.xjrf workspace and build the project. The workspace is set up such that both the boot loader and the application will be loaded into the target, thus running the application after the bootloader has verified the Firmware image.

For test purposes, you can then remove the loading of the application via the Debug/Files for Download menu item from WinIdea Open and reload the boot loader. 

You will now observe that the bootloader does not find a valid application image in program memory and will enter a loop in which the green OnBoard LED is toggled every second.
  
Observe the disclaimers in the respective main.c files.


